$(function ()
{
    findMsg();
})

function findMsg()
{
    let data = fontAjax('/callUs', {}, 'get');

    let model = data.model;
    let productTypeList = data.productTypeList;
    let hotel = data.hotel;

    let productName = '';

    if (model != null)
    {
        $('#bigTitle').html('<a href="/html/projectServer.html">' + model.bigTitle + '</a>');
        $('#smallTitle').html(model.smallTitle);
        $('#rephone').html(model.reservationPhone);
    }

    if (productTypeList != null)
    {
        for (let i = 0; i < productTypeList.length; i++)
        {
            if (i < 5)
            {
                productName += '<div>' + productTypeList[i].productType + '</div>';
            }
        }

    }
    $('#productName').html(productName);

    if (hotel != null)
    {
        $('#hotelContent').html(hotel.content);
        $('#hotelAddress').html(hotel.address);
        $('#hotelPhone').html(hotel.phone);
        $('#hotelFax').html(hotel.fax);
        $('#hotelEmail').html(hotel.email);
        $('#hotelWebsite').html(hotel.website);
    }
}